package com.woniu.ucenterservice.dao;

import com.woniu.ucenterservice.pojo.History;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HistoryMapper {
    int deleteByPrimaryKey(Integer goodsHisId);

    int insert(History record);

    int insertSelective(History record);

    History selectByPrimaryKey(Integer goodsHisId);

    int updateByPrimaryKeySelective(History record);

    int updateByPrimaryKey(History record);
    @Select("select * from history where user_id =#{userId}")
   List<History> selectByUid(Integer userId);
    @Select("delete from history where goods_id=#{goodsId}")
    void deleteByMyGoodId(Integer goodsId);

     void batchDeleteMyGoods(List<Integer> list) ;


}